package com.noodles.mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.noodles.mall.entity.parent.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author noodles
 * @since 2021-02-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_cart")
public class Cart extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Integer userId;

    private Integer itemId;

    private Integer itemCount;

    @TableField(exist = false)
    private Item item;
}
